<template>
  <div class="mod-config mod-log">
    <table-view ref="view"
                :searchAttrs="searchAttrs"
                :primaryKey="primaryKey"
                :listApiName="listApiName"
                :deleteApiName="deleteApiName"
                :saveAuthName="saveAuthName"
                :deleteAuthName="deleteAuthName"
                :showAttrs="showAttrs"
    >
    </table-view>
  </div>
</template>

<script>
import tableView from '@/components/tableView'
import basicMixins from '@/utils/commonViewMixins'

export default {
  mixins: [basicMixins],
  components: {tableView},
  data() {
    return {
      searchAttrs: {},
      primaryKey: 'id',
      listApiName: 'systemApi/listLog',
      deleteApiName: '',
      saveAuthName: '',
      deleteAuthName: '',
      showAttrs: {
        // id: {label: 'ID'},
        username: {label: '用户名'},
        operation: {label: '用户操作'},
        method: {label: '请求方法'},
        params: {label: '请求参数'},
        time: {label: '执行时长(毫秒)'},
        ip: {label: 'IP地址'},
        createDate: {label: '创建时间', type: 'date'},
        status: {
          label: '状态',
          type: 'radio',
          items: [
            {value: 0, text: '禁用', tagType: 'danger'},
            {value: 1, text: '正常'}
          ]
        }
      }
    }
  }
}
</script>
